<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        div {
            margin-bottom: 10px;
        }
        
        body {
            position: relative;
            width: 200px;
            margin: 0 auto;
        }
        
        ul li {
            list-style: none;
            float: left;
            margin-right: 10px;
            margin-bottom: 10px;
            background-color: pink;
            border: 1px solid #333333;
        }
        
        .btn {
            width: 300px;
            position: absolute;
            top: 32px;
            left: 200px;
        }
        
        .btn button {
            display: block;
            margin-bottom: 10px;
        }
    </style>
</head>

<body>
    <!-- <button id="btn">??</button> -->
    <div>城市</div>
    <ul id="city">
        <li id='bj'>北京</li>
        <li>上海</li>
        <li>东京</li>
    </ul>
    <br>
    <div class="btn">
        <button type="button" id="addGZ">添加广州</button>
        <button type="button" id="addBefore">添加广州到北京前面</button>
        <button type="button" id="replaceBj">广州替换北京</button>
        <button type="button" id="deleteBj">删除bj节点</button>
        <button type="button" id="readHtml">读取city内的HTML代码</button>
        <button type="button" id="writeHtml">设置bj内的HTML代码</button>
    </div>

</body>
<script src="./object.js"></script>


</html>